package tw.com.hitevision.whiteboard.android.widgets.floatView.anim

import android.animation.Animator
import android.view.View
import android.view.WindowManager
import tw.com.hitevision.whiteboard.android.widgets.floatView.data.FloatConfig

internal class AppFloatAnimatorManager(
    private val view: View,
    private val params: WindowManager.LayoutParams,
    private val windowManager: WindowManager,
    private val config: FloatConfig
) {

    fun enterAnim(): Animator? =
        config.appFloatAnimator?.enterAnim(view, params, windowManager, config.sidePattern)

    fun exitAnim(): Animator? =
        config.appFloatAnimator?.exitAnim(view, params, windowManager, config.sidePattern)
}